package com.wl.spring;

public class Demo {

    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void init(){
        System.out.println("初始化方法："+name);
    }

    public void destroy(){
        System.out.println("销毁方法："+name);
    }

    public void hello(){
        System.out.println("hello" + name + "!");
    }
}
